﻿// -----------------------------------------------------------------------
// <copyright file="ActiveDirAccessElement.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Configuration.ConfigElements
{
	#region Usings

	using System.Configuration;

	#endregion

	/// <summary>
	/// Provides active directory access settings from config file.
	/// </summary>
	public class ActiveDirAccessElement : ConfigurationElement
	{
		/// <summary>
		/// Gets or sets the user name.
		/// </summary>
		[ConfigurationProperty("userName")]
		public string UserName
		{
			get
			{
				return (string)this["userName"];
			}

			set
			{
				this["userName"] = value;
			}
		}

		/// <summary>
		/// Gets or sets the user password.
		/// </summary>
		[ConfigurationProperty("password")]
		public string Password
		{
			get
			{
				return (string)this["password"];
			}

			set
			{
				this["password"] = value;
			}
		}
	}
}
